<script setup>
var age=Math.round(Math.random()*40);
</script>
<template>
<div v-if="age < 18">未成年</div>
<div v-if="age > 18">已成年</div>
<div v-if="age == 18">刚成年</div>
</template>